All Questions
2 questions
0votes
1answer
211views
Remove certain words and set word at end of string in files
I have a bunch of files that contain strings similar to: Get<1>(abc) Get<2>(xyz) How can I recursively search for all files with the above pattern and remove everything before the first '(...
1vote
1answer
648views
Why does the same sed regex (after grep) fail when run in a bash script vs bash command line?
Here's the script. It is successful when I run it from the BASH prompt, but not in the script. Any ideas? When I say "fails," I mean the sed regex doesn't match anything, so there is no replaced text....